﻿@using FormBuilder.Components.Drag
@using FormBuilder.Helpers
@inject ITranslationHelper translationHelper

<DraggableFormElement IsEditModeEnabled=@IsEditModeEnabled ParentContext="@ParentContext" Context="@Context" TDialog="BackButtonDialog" TRecord="BackButtonRecord" Record="@Value">
    <Children>
        <button @onclick="@(async() => await HandleBack())" class="@BtnClass">
            Back
        </button>
    </Children>
</DraggableFormElement>